//
//  GestureSettingTableViewCell.swift
//  ezyform
//
//  Created by Moennig Q on 19/7/2022.
//  Copyright © 2022 Client.Solution Pty Ltd. All rights reserved.
//

import UIKit

class GestureSettingTableViewCell: UITableViewCell {

    lazy var typeDescripLabel: BaseLabel = {
        let label = BaseLabel()
        label.setFont(R.font.sfProTextMedium(size: 16))
        return label
    }()
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.initUI()
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
    }
    override func layoutSubviews() {
        super.layoutSubviews()
        
    }
    override func setSelected(_ selected: Bool, animated: Bool) {
        self.backgroundColor = .clear//选中或没有选中的背景色全部设置为透明
    }
    private func initUI(){
        //
        self.contentView.backgroundColor = .white
        self.typeDescripLabel.text = "Pattern Setting"
        self.typeDescripLabel.textColor = UIColor(hexStr: "#9B9B9B")
        self.contentView.addSubview(typeDescripLabel)
        typeDescripLabel.snp.makeConstraints { make in
            make.left.equalToSuperview().offset(20)
            make.width.height.greaterThanOrEqualTo(0)
            make.centerY.equalToSuperview()
        }
        //
        let moreImageView = UIImageView(image: UIImage(named: "loginmethod_more"))
        self.contentView.addSubview(moreImageView)
        moreImageView.snp.makeConstraints { make in
            make.right.equalToSuperview().offset(-25)
            make.height.width.equalTo(18)
            make.centerY.equalToSuperview()
        }
    }
}
